home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 August / chip-cd_2004_08.zip / 08 / Multimedia / Zoom Player Standard 4.00 / zp400std.exe / MediaGraph / example_mpeg2_using_windvd.mediagraph < prev    next >
Text File  |  2002-11-03  |  2KB  |  43 lines

  1. // Graph for decoding MPEG2 Media Files (Such as VOB) using WinDVD filters
  2. // You can switch the WinDVD decoder for any MPEG2 decoder filter set, as
  3. // long as they support Line21 decoding, otherwise you'll have to modify
  4. // the graph to remove the connection to the Line21 Decoder.
  5.  
  6. # Create our Filters
  7. LoadFilter({79376820-07D0-11CF-A24D-0020AFD79767},Default DirectSound Device)
  8. LoadFilter({70E102B0-5556-11CE-97C0-00AA0055595A},Video Renderer)
  9. LoadFilter({7E2E0DC1-31FD-11D2-9C21-00104B3801F6},InterVideo Audio Decoder)
  10. LoadFilter({CD8743A1-3736-11D0-9E69-00C04FD7C15B},Overlay Mixer)
  11. LoadFilter({6E8D4A20-310C-11D0-B79A-00AA003767A7},Line 21 Decoder)
  12. LoadFilter({0246CA20-776D-11D2-8010-00104B9B8592},InterVideo Video Decoder)
  13. LoadFilter({AFB6C280-2C41-11D3-8A60-0000F81E0E4A},MPEG 2 Demultiplexer)
  14. LoadFilter({E436EBB5-524F-11CE-9F53-0020AF0BA770},Source File)
  15.  
  16. # Assign the user selected filename to the source filter,
  17. # "<FileName>" is translated to the actual file name automatically.
  18. SetFilterFileName(Source File,<FileName>)
  19.  
  20. # Connect a source file to the MPEG2 Demultiplexer (Audio/Video Splitter)
  21. ConnectPin(Source File,Output,MPEG 2 Demultiplexer,MPEG-2 Stream)
  22.  
  23. # Connect the MPEG2 Demultiplexer to the InterVideo Audio Decoder
  24. ConnectPin(MPEG 2 Demultiplexer,Mpeg-1,InterVideo Audio Decoder,In)
  25.  
  26. # Connect the MPEG2 Demultiplexer to the InterVideo Video Decoder
  27. ConnectPin(MPEG 2 Demultiplexer,Video,InterVideo Video Decoder,Video Input)
  28.  
  29. # Connect the InterVideo Audio Decoder to the Audio Renderer
  30. ConnectPin(InterVideo Audio Decoder,Out,Default DirectSound Device,Audio Input pin (rendered))
  31.  
  32. # Connect the InterVideo Video Decoder to the Overlay Mixer
  33. ConnectPin(InterVideo Video Decoder,Video Output,Overlay Mixer,Input0)
  34.  
  35. # Connect the InterVideo Video Decoder to the Line21 Decoder (Closed Captions)
  36. ConnectPin(InterVideo Video Decoder,~Line21 Output,Line 21 Decoder,In)
  37.  
  38. # Connect the Line21 Decoder to the Overlay Mixer
  39. ConnectPin(Line 21 Decoder,Out,Overlay Mixer,Input2)
  40.  
  41. # Connect the Overlay Mixer to the Video Renderer
  42. ConnectPin(Overlay Mixer,Output,Video Renderer,In)
  43.